<?
include("../gestione/includes/config.inc.php");
include("../gestione/includes/auth.lib.php");
$idbanner = $_GET['idbanner'];
if($idbanner != "")  {
  $newBanner = new banner($idbanner);
  $newBanner->clickBanner();
  header("Location:".$newBanner->fields['clickurl']);
  die();
} else
   echo "<script language=Javascript>self.close();</script>";
?>
